import { HttpClient } from "../../../../service/Http/HttpClient";

let baseUrl: string = "/api";
//超限告警分页查询
export const getWarnData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/transfinite/getWarnData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//故障告警分页查询
export const getfaultWarnData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/fault/getWarnData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//超限阀值设置分页查询
export const getDeviceSetData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/transfinite/set/getDeviceSetData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//删除设备阀值设置
export const deleteSetData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/transfinite/set/deleteSetData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//设备阀值设置查询
export const getUnitSetDataList = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/transfinite/set/getUnitSetDataList", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//更新设备阀值设置
export const updateUnitSetData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch(baseUrl + "/ems/alarm/transfinite/set/updateUnitSetData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
